<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加入我们 - 流光小队</title>
    <link rel="stylesheet" href="../../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .join-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .join-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .join-header h1 {
            font-size: 2.5em;
            color: #2d3748;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .join-header p {
            font-size: 1.2em;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        .join-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-top: 30px;
        }

        .join-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid #e2e8f0;
        }

        .join-card h4 {
            font-size: 1.3em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .join-card h4 i {
            color: #667eea;
        }

        .join-requirements {
            list-style: none;
            padding: 0;
        }

        .join-requirements li {
            padding: 8px 0;
            color: #4a5568;
            position: relative;
            padding-left: 25px;
        }

        .join-requirements li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #38a169;
            font-weight: bold;
            font-size: 1.1em;
        }

        .join-steps {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .step {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.1em;
            flex-shrink: 0;
        }

        .step-content h5 {
            font-size: 1.1em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 5px;
        }

        .step-content p {
            color: #718096;
            line-height: 1.5;
            margin: 0;
        }

        .join-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .join-form .form-group {
            margin-bottom: 0;
        }

        .join-form label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #4a5568;
        }

        .join-form input,
        .join-form textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.9em;
            transition: border-color 0.3s ease;
        }

        .join-form input:focus,
        .join-form textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .btn-full {
            width: 100%;
            padding: 12px;
            font-size: 1em;
            font-weight: 500;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: #f7fafc;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: #edf2f7;
            transform: translateX(5px);
        }

        .contact-item i {
            color: #667eea;
            font-size: 1.2em;
            width: 20px;
        }

        .contact-item h5 {
            font-size: 0.9em;
            font-weight: 600;
            color: #2d3748;
            margin: 0 0 3px 0;
        }

        .contact-item p {
            color: #718096;
            margin: 0;
            font-size: 0.9em;
        }

        .qr-codes {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            justify-content: center;
        }

        .qr-item {
            text-align: center;
        }

        .qr-placeholder {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2em;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .qr-placeholder:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .qr-item p {
            color: #718096;
            font-size: 0.8em;
            margin: 0;
        }

        @media (max-width: 768px) {
            .join-card {
                padding: 20px;
                margin-bottom: 20px;
            }

            .step {
                gap: 12px;
            }

            .step-number {
                width: 30px;
                height: 30px;
                font-size: 1em;
            }

            .contact-info {
                gap: 12px;
            }

            .contact-item {
                padding: 10px;
            }

            .qr-codes {
                gap: 15px;
            }

            .qr-placeholder {
                width: 60px;
                height: 60px;
                font-size: 1.5em;
            }
        }
    </style>
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar" id="sidebar">
        <div class="sidebar-header">
            <h3>流光小队</h3>
            <button class="sidebar-toggle" onclick="toggleSidebar()">
                <i class="fas fa-times"></i>
            </button>
        </div>
        <nav class="sidebar-nav">
            <ul>
                <li>
                    <a href="../../index.html">
                        <i class="fas fa-home"></i>
                        首页
                    </a>
                </li>
                <li>
                    <a href="../about/index.html">
                        <i class="fas fa-info-circle"></i>
                        关于我们
                    </a>
                </li>
                
                <!-- 成员相关 -->
                <li>
                    <a href="../members/index.html">
                        <i class="fas fa-users"></i>
                        成员介绍
                    </a>
                </li>
                <li>
                    <a href="../excellent/index.html">
                        <i class="fas fa-star"></i>
                        优秀成员
                    </a>
                </li>
                
                <!-- 活动相关 -->
                <li>
                    <a href="../activities/upcoming.html">
                        <i class="fas fa-calendar-alt"></i>
                        活动预告
                    </a>
                </li>
                <li>
                    <a href="../activities/past.html">
                        <i class="fas fa-history"></i>
                        往期活动
                    </a>
                </li>
                <li>
                    <a href="../activities/calendar.html">
                        <i class="fas fa-calendar"></i>
                        活动日历
                    </a>
                </li>
                
                <!-- 成果与资源 -->
                <li>
                    <a href="../achievements/index.html">
                        <i class="fas fa-trophy"></i>
                        小组成果
                    </a>
                </li>
                <li>
                    <a href="../resources/index.html">
                        <i class="fas fa-book"></i>
                        学习资料
                    </a>
                </li>
                <li>
                    <a href="../resources/shares.html">
                        <i class="fas fa-share-alt"></i>
                        成员分享
                    </a>
                </li>
                
                <!-- 互动与讨论 -->
                <li>
                    <a href="../interaction/index.html">
                        <i class="fas fa-comments"></i>
                        互动交流
                    </a>
                </li>
                
                <!-- 加入与联系 -->
                <li class="active">
                    <a href="index.html">
                        <i class="fas fa-user-plus"></i>
                        加入我们
                    </a>
                </li>
                <li>
                    <a href="../contact/index.html">
                        <i class="fas fa-address-book"></i>
                        联系方式
                    </a>
                </li>
                
                <!-- 其他扩展 -->
                <li>
                    <a href="../partners/index.html">
                        <i class="fas fa-handshake"></i>
                        合作伙伴
                    </a>
                </li>
                <li>
                    <a href="../faq/index.html">
                        <i class="fas fa-question-circle"></i>
                        常见问题
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="topbar">
            <div class="topbar-left">
                <button class="menu-toggle" onclick="toggleSidebar()">
                    <i class="fas fa-bars"></i>
                </button>
                <h1>加入我们</h1>
            </div>
        </div>

        <!-- 内容区域 -->
        <div class="content">
            <div class="join-section">
                <!-- 页面标题 -->
                <div class="join-header">
                    <h1>加入我们</h1>
                    <p>加入流光小队，开启你的创新之旅</p>
                </div>
                
                <div class="join-content">
                    <!-- 加入条件 -->
                    <div class="join-card">
                        <h4><i class="fas fa-clipboard-list"></i> 加入条件</h4>
                        <ul class="join-requirements">
                            <li>对科技创新有浓厚兴趣</li>
                            <li>具备良好的团队协作能力</li>
                            <li>有相关技术基础或学习热情</li>
                            <li>能够积极参与团队活动</li>
                            <li>遵守团队规章制度</li>
                        </ul>
                    </div>
                    
                    <!-- 加入流程 -->
                    <div class="join-card">
                        <h4><i class="fas fa-route"></i> 加入流程</h4>
                        <div class="join-steps">
                            <div class="step">
                                <div class="step-number">1</div>
                                <div class="step-content">
                                    <h5>提交申请</h5>
                                    <p>填写报名表单，介绍自己的兴趣和技能</p>
                                </div>
                            </div>
                            <div class="step">
                                <div class="step-number">2</div>
                                <div class="step-content">
                                    <h5>初步筛选</h5>
                                    <p>团队负责人审核申请材料</p>
                                </div>
                            </div>
                            <div class="step">
                                <div class="step-number">3</div>
                                <div class="step-content">
                                    <h5>面试交流</h5>
                                    <p>进行线上或线下交流，了解彼此</p>
                                </div>
                            </div>
                            <div class="step">
                                <div class="step-number">4</div>
                                <div class="step-content">
                                    <h5>正式加入</h5>
                                    <p>通过审核后正式成为团队成员</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 报名表单 -->
                    <div class="join-card">
                        <h4><i class="fas fa-edit"></i> 报名表单</h4>
                        <form class="join-form" id="joinForm" onsubmit="handleJoinFormSubmit(event)">
                            <div class="form-group">
                                <label for="joinName">姓名 *</label>
                                <input type="text" id="joinName" name="name" required>
                            </div>
                            <div class="form-group">
                                <label for="joinEmail">邮箱 *</label>
                                <input type="email" id="joinEmail" name="email" required>
                            </div>
                            <div class="form-group">
                                <label for="joinPhone">手机号 *</label>
                                <input type="tel" id="joinPhone" name="phone" required>
                            </div>
                            <div class="form-group">
                                <label for="joinMajor">专业/年级</label>
                                <input type="text" id="joinMajor" name="major" placeholder="如：计算机科学与技术 大三">
                            </div>
                            <div class="form-group">
                                <label for="joinSkills">技能特长</label>
                                <textarea id="joinSkills" name="skills" rows="3" placeholder="请描述你的技术技能、项目经验或兴趣爱好..."></textarea>
                            </div>
                            <div class="form-group">
                                <label for="joinMotivation">加入动机</label>
                                <textarea id="joinMotivation" name="motivation" rows="3" placeholder="请说明为什么想加入流光小队..."></textarea>
                            </div>
                            <button type="submit" class="btn btn-primary btn-full">
                                <i class="fas fa-paper-plane"></i> 提交申请
                            </button>
                        </form>
                    </div>
                    
                    <!-- 联系方式 -->
                    <div class="join-card">
                        <h4><i class="fas fa-comments"></i> 联系方式</h4>
                        <div class="contact-info">
                            <div class="contact-item">
                                <i class="fas fa-user"></i>
                                <div>
                                    <h5>团队负责人</h5>
                                    <p>张三 - 队长</p>
                                </div>
                            </div>
                            <div class="contact-item">
                                <i class="fas fa-envelope"></i>
                                <div>
                                    <h5>邮箱</h5>
                                    <p>liuguang@example.com</p>
                                </div>
                            </div>
                            <div class="contact-item">
                                <i class="fas fa-phone"></i>
                                <div>
                                    <h5>电话</h5>
                                    <p>138-0000-0000</p>
                                </div>
                            </div>
                            <div class="contact-item">
                                <i class="fab fa-qq"></i>
                                <div>
                                    <h5>QQ群</h5>
                                    <p>流光小队官方群：123456789</p>
                                </div>
                            </div>
                            <div class="contact-item">
                                <i class="fab fa-weixin"></i>
                                <div>
                                    <h5>微信群</h5>
                                    <p>扫描二维码加入</p>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 二维码展示 -->
                        <div class="qr-codes">
                            <div class="qr-item">
                                <div class="qr-placeholder">
                                    <i class="fab fa-qq"></i>
                                </div>
                                <p>QQ群二维码</p>
                            </div>
                            <div class="qr-item">
                                <div class="qr-placeholder">
                                    <i class="fab fa-weixin"></i>
                                </div>
                                <p>微信群二维码</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        function toggleSidebar() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('open');
        }

        // 处理报名表单提交
        function handleJoinFormSubmit(event) {
            event.preventDefault();
            
            const formData = new FormData(event.target);
            const joinData = {
                name: formData.get('name'),
                email: formData.get('email'),
                phone: formData.get('phone'),
                major: formData.get('major'),
                skills: formData.get('skills'),
                motivation: formData.get('motivation'),
                submitTime: new Date().toLocaleString('zh-CN')
            };
            
            // 这里可以添加表单验证逻辑
            if (!joinData.name || !joinData.email || !joinData.phone) {
                alert('请填写必填项：姓名、邮箱、手机号');
                return;
            }
            
            // 模拟提交成功
            const successMessage = `
✅ 申请提交成功！

📋 申请信息：
姓名：${joinData.name}
邮箱：${joinData.email}
手机：${joinData.phone}
专业：${joinData.major || '未填写'}
提交时间：${joinData.submitTime}

📞 我们会尽快联系您进行下一步审核。
请保持手机和邮箱畅通！
            `;
            
            alert(successMessage);
            
            // 清空表单
            event.target.reset();
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 设置当前页面的导航项为激活状态
            document.querySelectorAll('.sidebar-nav li').forEach(li => {
                li.classList.remove('active');
            });
            document.querySelector('.sidebar-nav li:nth-child(12)').classList.add('active');
        });
    </script>
</body>
</html> 